package day1103.demo05;

/**
 * @author wql
 * @version 1.0
 * @date 2022/11/3 14:53
 */

public class Test {
    public static void main(String[] args) {
        Haha h =aa-> aa.length();
        OutLength(h, "你好");
        }
    public static void OutLength(Haha h,String w){
        int length = h.getLength(w);
        System.out.println("length = " + length);
    }
}
@FunctionalInterface
interface  Haha{
    public int getLength(String w);
}
